import request from '@/utils/request'

// 查询新建会员等级列表
export function listMembershipLevels(query) {
  return request({
    url: '/boss/membershipLevels/list',
    method: 'get',
    params: query
  })
}

// 查询新建会员等级详细
export function getMembershipLevels(levelId) {
  return request({
    url: '/boss/membershipLevels/' + levelId,
    method: 'get'
  })
}

// 新增新建会员等级
export function addMembershipLevels(data) {
  return request({
    url: '/boss/membershipLevels',
    method: 'post',
    data: data
  })
}

// 修改新建会员等级
export function updateMembershipLevels(data) {
  return request({
    url: '/boss/membershipLevels',
    method: 'put',
    data: data
  })
}

// 删除新建会员等级
export function delMembershipLevels(levelId) {
  return request({
    url: '/boss/membershipLevels/' + levelId,
    method: 'delete'
  })
}
